feat: add ai-gateway-cost-control experiment flag#26399
Merged
ssncferreira merged 3 commits intoJun 16, 2026
Conversation
Docs preview📖 View docs preview for |
4104bdb to
8cf8abf
Compare
8cf8abf to
01e5ee6
Compare
Add the ai-gateway-cost-control experiment to gate new cost control
endpoints and upcoming UI behind an explicit opt-in flag.
Only the /users/{user}/ai/budget endpoints are gated since the
/organizations/{org}/groups/{group}/ai/budget endpoints were already
released in v2.34.0.
01e5ee6 to
6fab966
Compare
dannykopping
approved these changes
Jun 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the
ai-gateway-cost-controlexperiment flag to gate new cost control endpoints and upcoming frontend UI behind an explicit opt-in.Currently AI Gateway cost control supports the following endpoints:
GET/PUT/DELETE /api/v2/organizations/{org}/groups/{group}/ai/budgetGET/PUT/DELETE /api/v2/users/{user}/ai/budgetNote: the group-level endpoints were already released in v2.34.0 and remain ungated. Only the user-level endpoints are gated behind this experiment. Future cost control endpoints and UI should use this experiment for gating until the feature is stable.